home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Communication / NewsBase / Source / SideSplitView.h < prev    next >
Text File  |  1993-01-12  |  1KB  |  49 lines

  1.  
  2. /* 
  3.  * SideSplitView.m
  4.  *
  5.  * Purpose:
  6.  *        This object implements a split view which divides a view into two
  7.  *        side by side areas. These areas are intended to be filled by subviews.
  8.  *        The user can then change the porportion of the subviews to one
  9.  *        another. The purpose is to provide developers with an alternative to
  10.  *        NXSplitView.
  11.  *
  12.  * You may freely copy, distribute, and reuse the code in this example.
  13.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  14.  * fitness for any particular use.
  15.  *
  16.  * Written by: Mary McNabb
  17.  * Created: Apr 91
  18.  *
  19.  */
  20.  
  21. #import <appkit/View.h>
  22.  
  23. @interface SideSplitView:View
  24. {
  25.     NXRect dividerRect;
  26.     NXCoord maxX, minX;
  27.     NXCoord dimpleHalfHeight;
  28.     
  29.     id leftView;
  30.     id rightView;
  31.     id dimple;
  32. }
  33.  
  34. /* initialization routines */
  35. - initFrame:(NXRect *) theRect;
  36. - initViews;                    // call after NIB loaded..
  37. - setLeftView:(id)newView;
  38. - setRightView:(id)newView;
  39.  
  40. /* drawing routines */
  41. - (BOOL)acceptsFirstMouse;
  42. - drawSelf:(const NXRect *)r :(int)c;
  43. - mouseDown:(NXEvent *) theEvent;
  44. - drawDimple;
  45. - adjustSubviews;
  46. - resizeSubviews:(const NXSize *)oldSize;
  47.  
  48. @end
  49.